package com.eos.control.action.customer;

import com.eos.business.service.SysProductBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysColour;

public class EditColorAction extends AbstractBaseAction {
	private static final long serialVersionUID = 5323542284670882695L;
	private Integer colorId;
	private SysColour color;
		
	public void setColorId(Integer colorId) {
		this.colorId = colorId;
	}

	public SysColour getColor() {
		return color;
	}

	@Override
	public String execute()  {
		try {
			SysProductBusinessService spbs = new SysProductBusinessService();
			color = spbs.getSysColorPrimaryKey(colorId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
